import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'// 根注入
})
export class ConfigService {
  public data = ['test', 'DI'];
  public showData() {
    console.log('ConfigService:', this.data);
  }
  public setData(data: any[]) {
    this.data = data;
  }
}
